package WebModule::Wprovince;

use strict;

use base qw(WebModule);

__PACKAGE__->meta->setup(
    table   => 'wprovince',

    columns => [
        id       => { type => 'serial', not_null => 1 },
        province => { type => 'varchar', length => 25, not_null => 1 },
    ],

    primary_key_columns => [ 'id' ],

    unique_key => [ 'province' ],

    relationships=>[
        city=>{
            type=>'one to many',
            class=>'WebModule::Wcity',
            column_map=>{ id=>'province'},
        },
    ],
);

1;

